-
Notifications
You must be signed in to change notification settings - Fork 334
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rich information on Bootstrap initalization failure #2316
Conversation
…gBreak, FailFast and/or prompt to install
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
@DrusTheAxe, this is great - thanks for the fit and finish work! |
Per offline discussion, this is helpful but won't accrue to apps already deployed until/unless the store provides support for fwp updates in a future version. Meantime, should developers be alerted to the existence of MddBootstrapInitialize2 at build time (e.g., deprecated attribute on MddBootstrapInitialize)? |
Co-authored-by: Rafael Rivera <[email protected]>
Anyone directly calling The only 'problem' is existing apps directly calling |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
…icrosoft/WindowsAppSDK into user/drustheaxe/moar-bootstrap
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
…sAppSDK.BootstrapCommon.targets. Mdd==DynamicDependencies, which is a generic facility for any packcage. Bootstrap==specialization of DynamicDependencies, uniquely for WindowsAppSDK's runtime
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Add new
MddBootstrapInitialize2(...options)
If Bootstrap Initialize fails...
...Write to the eventlog
...Optionally
The optional behavior is triggered by the new
MddBootstrapInitialize(...options)
parameter or by environment variablesTested via manual testing (
HelloWorldAdvancedCPP.exe
) under debugger with memory fiddling and running after setting environment variables.*.targets updated to provide build-time control (instead of AutoInitialize always unconditionally enabled like in 1.0).
WindowsAppSDKBootstrapAutoInitialize
=false
MddBootstrapInitialize2()
For example, to disable the auto-initializer add to your *proj file:
or to enable the auto-initializer (default) but use the DebugBreak+FailFast options (instead of the default)
https://task.ms/38570577 Improve Bootstrap error discoverability+diagnostics
https://task.ms/38497503 Improve Bootstrap AutoInitialize discoverability+diagnostics
https://task.ms/38570355
MddBootstrapInitializeOptions_OnPackageIdentity_NOOP